proc sum(values: varargs[int]): int = 
  for v in values:
    result+=v

var s = sum(1,2,3)
echo s
